<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Delete Event</title>
    </h:head>
    <h:body>
        <h:form id="createventform">
            <p:panel header="Delete Event Form">

                <h:panelGrid columns="3" id="regGrid">

                    <h:outputLabel style="color:black" for="name">Name Event to Delete:</h:outputLabel>
                    <p:inputText id="name" value="#{eventbean.eventtodelete}" required="true">
                        <p:ajax update="name"/>
                    </p:inputText>
                    <p:message id="namemsg" for="name" />
                    
                    <h:outputLabel style="color:black" for="startdate">Date Event to Delete:</h:outputLabel>
                    <p:calendar id="startdate" value="#{eventbean.dateeventtodelete}" locale="it" navigator="true" pattern="yyyy-MM-dd HH:mm" required="true">
                    </p:calendar>
                    <p:message id="startdatemsg" for="startdate" />

                </h:panelGrid>

                <p:commandButton id="submit" style="background: -webkit-linear-gradient(top, #00b7ea 0%,#009ec3 100%); border: double; border-color: black; border-width: 3px; color: black " value="DeleteEvent" update="regGrid"
                                 action="#{eventbean.deleteEvent()}" />
                <p:button style="background: -webkit-linear-gradient(top, #00b7ea 0%,#009ec3 100%); border: double; border-color: black; border-width: 3px; color: black " outcome="calendar" value="Back"/>
            </p:panel>
        </h:form>
        
        <br />

    </h:body>
</html>

